#!/usr/bin/env bash
# set -x
set -uo pipefail
###
# 部署完毕后执行一些清理动作
###

cd `dirname ${BASH_SOURCE[0]}`
SHELL_FOLDER=$(pwd)
DEPLOY_ROOT=$(cd ../ && pwd)
source $DEPLOY_ROOT/utils/log.sh

cd $SHELL_FOLDER

# 清理临时Python Enviroment
if [ -d $HOME/pyenv ]; then
  INFO "Cleanup Python Envirment: $HOME/pyenv"
  rm -rf $HOME/pyenv
fi
